/**
 * FileName: FeignConfig
 * Author:   Administrator
 * Date:     2018/10/26 17:21
 * Description: 远程调用失败后会进行重试
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.fortune.rainshine.config;

import java.util.concurrent.TimeUnit;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import feign.Retryer;

/**
 * 〈一句话功能简述〉<br>
 * 〈远程调用失败后会进行重试〉
 *
 * @author Administrator
 * @create 2018/10/26
 * @since 1.0.0
 */
@Configuration
public class FeignConfig {
	@Bean
	public Retryer feignRetryer() {
		return new Retryer.Default(99999, TimeUnit.SECONDS.toMillis(999999), 1);
	}
}